
class TestLogger
  attr_reader :entries

  def initialize
    @entries = []
  end

  def debug(entry)
    @entries.push entry
  end

  def info(entry)
    @entries.push entry
  end

  def warn(entry)
    @entries.push entry
  end

  def error(entry)
    @entries.push entry
  end

  def fatal(entry)
    @entries.push entry
  end
end

